package com.sz.stock.model;

import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.List;

public class BankcardExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public BankcardExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andBankIdIsNull() {
            addCriterion("STOCK_BANK_ID is null");
            return (Criteria) this;
        }

        public Criteria andBankIdIsNotNull() {
            addCriterion("STOCK_BANK_ID is not null");
            return (Criteria) this;
        }

        public Criteria andBankIdEqualTo(Integer value) {
            addCriterion("STOCK_BANK_ID =", value, "bankId");
            return (Criteria) this;
        }

        public Criteria andBankIdNotEqualTo(Integer value) {
            addCriterion("STOCK_BANK_ID <>", value, "bankId");
            return (Criteria) this;
        }

        public Criteria andBankIdGreaterThan(Integer value) {
            addCriterion("STOCK_BANK_ID >", value, "bankId");
            return (Criteria) this;
        }

        public Criteria andBankIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("STOCK_BANK_ID >=", value, "bankId");
            return (Criteria) this;
        }

        public Criteria andBankIdLessThan(Integer value) {
            addCriterion("STOCK_BANK_ID <", value, "bankId");
            return (Criteria) this;
        }

        public Criteria andBankIdLessThanOrEqualTo(Integer value) {
            addCriterion("STOCK_BANK_ID <=", value, "bankId");
            return (Criteria) this;
        }

        public Criteria andBankIdIn(List<Integer> values) {
            addCriterion("STOCK_BANK_ID in", values, "bankId");
            return (Criteria) this;
        }

        public Criteria andBankIdNotIn(List<Integer> values) {
            addCriterion("STOCK_BANK_ID not in", values, "bankId");
            return (Criteria) this;
        }

        public Criteria andBankIdBetween(Integer value1, Integer value2) {
            addCriterion("STOCK_BANK_ID between", value1, value2, "bankId");
            return (Criteria) this;
        }

        public Criteria andBankIdNotBetween(Integer value1, Integer value2) {
            addCriterion("STOCK_BANK_ID not between", value1, value2, "bankId");
            return (Criteria) this;
        }

        public Criteria andBankUseridIsNull() {
            addCriterion("STOCK_BANK_USERID is null");
            return (Criteria) this;
        }

        public Criteria andBankUseridIsNotNull() {
            addCriterion("STOCK_BANK_USERID is not null");
            return (Criteria) this;
        }

        public Criteria andBankUseridEqualTo(Integer value) {
            addCriterion("STOCK_BANK_USERID =", value, "bankUserid");
            return (Criteria) this;
        }

        public Criteria andBankUseridNotEqualTo(Integer value) {
            addCriterion("STOCK_BANK_USERID <>", value, "bankUserid");
            return (Criteria) this;
        }

        public Criteria andBankUseridGreaterThan(Integer value) {
            addCriterion("STOCK_BANK_USERID >", value, "bankUserid");
            return (Criteria) this;
        }

        public Criteria andBankUseridGreaterThanOrEqualTo(Integer value) {
            addCriterion("STOCK_BANK_USERID >=", value, "bankUserid");
            return (Criteria) this;
        }

        public Criteria andBankUseridLessThan(Integer value) {
            addCriterion("STOCK_BANK_USERID <", value, "bankUserid");
            return (Criteria) this;
        }

        public Criteria andBankUseridLessThanOrEqualTo(Integer value) {
            addCriterion("STOCK_BANK_USERID <=", value, "bankUserid");
            return (Criteria) this;
        }

        public Criteria andBankUseridIn(List<Integer> values) {
            addCriterion("STOCK_BANK_USERID in", values, "bankUserid");
            return (Criteria) this;
        }

        public Criteria andBankUseridNotIn(List<Integer> values) {
            addCriterion("STOCK_BANK_USERID not in", values, "bankUserid");
            return (Criteria) this;
        }

        public Criteria andBankUseridBetween(Integer value1, Integer value2) {
            addCriterion("STOCK_BANK_USERID between", value1, value2, "bankUserid");
            return (Criteria) this;
        }

        public Criteria andBankUseridNotBetween(Integer value1, Integer value2) {
            addCriterion("STOCK_BANK_USERID not between", value1, value2, "bankUserid");
            return (Criteria) this;
        }

        public Criteria andBankCardnumberIsNull() {
            addCriterion("STOCK_BANK_CARDNUMBER is null");
            return (Criteria) this;
        }

        public Criteria andBankCardnumberIsNotNull() {
            addCriterion("STOCK_BANK_CARDNUMBER is not null");
            return (Criteria) this;
        }

        public Criteria andBankCardnumberEqualTo(String value) {
            addCriterion("STOCK_BANK_CARDNUMBER =", value, "bankCardnumber");
            return (Criteria) this;
        }

        public Criteria andBankCardnumberNotEqualTo(String value) {
            addCriterion("STOCK_BANK_CARDNUMBER <>", value, "bankCardnumber");
            return (Criteria) this;
        }

        public Criteria andBankCardnumberGreaterThan(String value) {
            addCriterion("STOCK_BANK_CARDNUMBER >", value, "bankCardnumber");
            return (Criteria) this;
        }

        public Criteria andBankCardnumberGreaterThanOrEqualTo(String value) {
            addCriterion("STOCK_BANK_CARDNUMBER >=", value, "bankCardnumber");
            return (Criteria) this;
        }

        public Criteria andBankCardnumberLessThan(String value) {
            addCriterion("STOCK_BANK_CARDNUMBER <", value, "bankCardnumber");
            return (Criteria) this;
        }

        public Criteria andBankCardnumberLessThanOrEqualTo(String value) {
            addCriterion("STOCK_BANK_CARDNUMBER <=", value, "bankCardnumber");
            return (Criteria) this;
        }

        public Criteria andBankCardnumberLike(String value) {
            addCriterion("STOCK_BANK_CARDNUMBER like", value, "bankCardnumber");
            return (Criteria) this;
        }

        public Criteria andBankCardnumberNotLike(String value) {
            addCriterion("STOCK_BANK_CARDNUMBER not like", value, "bankCardnumber");
            return (Criteria) this;
        }

        public Criteria andBankCardnumberIn(List<String> values) {
            addCriterion("STOCK_BANK_CARDNUMBER in", values, "bankCardnumber");
            return (Criteria) this;
        }

        public Criteria andBankCardnumberNotIn(List<String> values) {
            addCriterion("STOCK_BANK_CARDNUMBER not in", values, "bankCardnumber");
            return (Criteria) this;
        }

        public Criteria andBankCardnumberBetween(String value1, String value2) {
            addCriterion("STOCK_BANK_CARDNUMBER between", value1, value2, "bankCardnumber");
            return (Criteria) this;
        }

        public Criteria andBankCardnumberNotBetween(String value1, String value2) {
            addCriterion("STOCK_BANK_CARDNUMBER not between", value1, value2, "bankCardnumber");
            return (Criteria) this;
        }

        public Criteria andBankCardnameIsNull() {
            addCriterion("STOCK_BANK_CARDNAME is null");
            return (Criteria) this;
        }

        public Criteria andBankCardnameIsNotNull() {
            addCriterion("STOCK_BANK_CARDNAME is not null");
            return (Criteria) this;
        }

        public Criteria andBankCardnameEqualTo(String value) {
            addCriterion("STOCK_BANK_CARDNAME =", value, "bankCardname");
            return (Criteria) this;
        }

        public Criteria andBankCardnameNotEqualTo(String value) {
            addCriterion("STOCK_BANK_CARDNAME <>", value, "bankCardname");
            return (Criteria) this;
        }

        public Criteria andBankCardnameGreaterThan(String value) {
            addCriterion("STOCK_BANK_CARDNAME >", value, "bankCardname");
            return (Criteria) this;
        }

        public Criteria andBankCardnameGreaterThanOrEqualTo(String value) {
            addCriterion("STOCK_BANK_CARDNAME >=", value, "bankCardname");
            return (Criteria) this;
        }

        public Criteria andBankCardnameLessThan(String value) {
            addCriterion("STOCK_BANK_CARDNAME <", value, "bankCardname");
            return (Criteria) this;
        }

        public Criteria andBankCardnameLessThanOrEqualTo(String value) {
            addCriterion("STOCK_BANK_CARDNAME <=", value, "bankCardname");
            return (Criteria) this;
        }

        public Criteria andBankCardnameLike(String value) {
            addCriterion("STOCK_BANK_CARDNAME like", value, "bankCardname");
            return (Criteria) this;
        }

        public Criteria andBankCardnameNotLike(String value) {
            addCriterion("STOCK_BANK_CARDNAME not like", value, "bankCardname");
            return (Criteria) this;
        }

        public Criteria andBankCardnameIn(List<String> values) {
            addCriterion("STOCK_BANK_CARDNAME in", values, "bankCardname");
            return (Criteria) this;
        }

        public Criteria andBankCardnameNotIn(List<String> values) {
            addCriterion("STOCK_BANK_CARDNAME not in", values, "bankCardname");
            return (Criteria) this;
        }

        public Criteria andBankCardnameBetween(String value1, String value2) {
            addCriterion("STOCK_BANK_CARDNAME between", value1, value2, "bankCardname");
            return (Criteria) this;
        }

        public Criteria andBankCardnameNotBetween(String value1, String value2) {
            addCriterion("STOCK_BANK_CARDNAME not between", value1, value2, "bankCardname");
            return (Criteria) this;
        }

        public Criteria andBankCardbalanceIsNull() {
            addCriterion("STOCK_BANK_CARDBALANCE is null");
            return (Criteria) this;
        }

        public Criteria andBankCardbalanceIsNotNull() {
            addCriterion("STOCK_BANK_CARDBALANCE is not null");
            return (Criteria) this;
        }

        public Criteria andBankCardbalanceEqualTo(BigDecimal value) {
            addCriterion("STOCK_BANK_CARDBALANCE =", value, "bankCardbalance");
            return (Criteria) this;
        }

        public Criteria andBankCardbalanceNotEqualTo(BigDecimal value) {
            addCriterion("STOCK_BANK_CARDBALANCE <>", value, "bankCardbalance");
            return (Criteria) this;
        }

        public Criteria andBankCardbalanceGreaterThan(BigDecimal value) {
            addCriterion("STOCK_BANK_CARDBALANCE >", value, "bankCardbalance");
            return (Criteria) this;
        }

        public Criteria andBankCardbalanceGreaterThanOrEqualTo(BigDecimal value) {
            addCriterion("STOCK_BANK_CARDBALANCE >=", value, "bankCardbalance");
            return (Criteria) this;
        }

        public Criteria andBankCardbalanceLessThan(BigDecimal value) {
            addCriterion("STOCK_BANK_CARDBALANCE <", value, "bankCardbalance");
            return (Criteria) this;
        }

        public Criteria andBankCardbalanceLessThanOrEqualTo(BigDecimal value) {
            addCriterion("STOCK_BANK_CARDBALANCE <=", value, "bankCardbalance");
            return (Criteria) this;
        }

        public Criteria andBankCardbalanceIn(List<BigDecimal> values) {
            addCriterion("STOCK_BANK_CARDBALANCE in", values, "bankCardbalance");
            return (Criteria) this;
        }

        public Criteria andBankCardbalanceNotIn(List<BigDecimal> values) {
            addCriterion("STOCK_BANK_CARDBALANCE not in", values, "bankCardbalance");
            return (Criteria) this;
        }

        public Criteria andBankCardbalanceBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("STOCK_BANK_CARDBALANCE between", value1, value2, "bankCardbalance");
            return (Criteria) this;
        }

        public Criteria andBankCardbalanceNotBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("STOCK_BANK_CARDBALANCE not between", value1, value2, "bankCardbalance");
            return (Criteria) this;
        }

        public Criteria andBankCardstateIsNull() {
            addCriterion("STOCK_BANK_CARDSTATE is null");
            return (Criteria) this;
        }

        public Criteria andBankCardstateIsNotNull() {
            addCriterion("STOCK_BANK_CARDSTATE is not null");
            return (Criteria) this;
        }

        public Criteria andBankCardstateEqualTo(String value) {
            addCriterion("STOCK_BANK_CARDSTATE =", value, "bankCardstate");
            return (Criteria) this;
        }

        public Criteria andBankCardstateNotEqualTo(String value) {
            addCriterion("STOCK_BANK_CARDSTATE <>", value, "bankCardstate");
            return (Criteria) this;
        }

        public Criteria andBankCardstateGreaterThan(String value) {
            addCriterion("STOCK_BANK_CARDSTATE >", value, "bankCardstate");
            return (Criteria) this;
        }

        public Criteria andBankCardstateGreaterThanOrEqualTo(String value) {
            addCriterion("STOCK_BANK_CARDSTATE >=", value, "bankCardstate");
            return (Criteria) this;
        }

        public Criteria andBankCardstateLessThan(String value) {
            addCriterion("STOCK_BANK_CARDSTATE <", value, "bankCardstate");
            return (Criteria) this;
        }

        public Criteria andBankCardstateLessThanOrEqualTo(String value) {
            addCriterion("STOCK_BANK_CARDSTATE <=", value, "bankCardstate");
            return (Criteria) this;
        }

        public Criteria andBankCardstateLike(String value) {
            addCriterion("STOCK_BANK_CARDSTATE like", value, "bankCardstate");
            return (Criteria) this;
        }

        public Criteria andBankCardstateNotLike(String value) {
            addCriterion("STOCK_BANK_CARDSTATE not like", value, "bankCardstate");
            return (Criteria) this;
        }

        public Criteria andBankCardstateIn(List<String> values) {
            addCriterion("STOCK_BANK_CARDSTATE in", values, "bankCardstate");
            return (Criteria) this;
        }

        public Criteria andBankCardstateNotIn(List<String> values) {
            addCriterion("STOCK_BANK_CARDSTATE not in", values, "bankCardstate");
            return (Criteria) this;
        }

        public Criteria andBankCardstateBetween(String value1, String value2) {
            addCriterion("STOCK_BANK_CARDSTATE between", value1, value2, "bankCardstate");
            return (Criteria) this;
        }

        public Criteria andBankCardstateNotBetween(String value1, String value2) {
            addCriterion("STOCK_BANK_CARDSTATE not between", value1, value2, "bankCardstate");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}